package com.woniuxy.user.configuration;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 吴毛伟
 * @date:2020/7/20 15:58
 * @description:
 */
@Configuration
public class RuleConfiguration {
    @Bean
    public IRule rule() {
        return new RandomRule();//随机策略
    }
}
